package com.shengyuan.manage_os.old.ying.erpm;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONException;

import com.shengyuan.manage_os.old.ying.erpm.data.Machinery;
import com.shengyuan.manage_os.old.ying.erpm.layout.Workspace.OnViewChangedListener;
import com.shengyuan.manage_os.old.ying.erpm.tasks.Submit_System_Setting_Data_Task;

import android.os.Handler;
import android.os.Message;

public class WorkSpace_TaiBanActivity_JX extends WorkSpaceActivityJX implements OnViewChangedListener {

	public static int ButtonIndex; 
	public static Machinery mMachinery=new Machinery();
	
	
	@Override
	public List<Machinery> LoadMenuListItems() 
    {
		List<Machinery> list = new ArrayList<Machinery>();
		String T_JIXIE="";
		try {
			T_JIXIE = Submit_System_Setting_Data_Task.J_GONGCHENGMINGCHENG_GC.
					getJSONObject(Submit_System_Setting_Data_Task.mID).getString("WaiZuJiXie");
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
		
		String[] array = null;
		array = T_JIXIE.split("\r\n");
		Machinery item;
    	for (int i = 0; i < array.length; i++) {
    		if (!array[i].trim().equals("")) {
        		item = new Machinery();
    			item.Name = array[i];
    			list.add( item);
			}
		} 
    	return list;
    }
	
    private Handler mHandler= new Handler(){
		@Override
		public void handleMessage(Message msg) {
			//Utility.MessageBox(msg.what+"");
            switch (msg.what) {
            case 0:
            	break;
            }
		}
    	
    };
	@Override
	public Handler GetHandler() {
		return mHandler;
	}	
}